<?php

class Communitas_Integrate_Model_Catalog_Product_Type_Configurable_Api extends Mage_Api_Model_Resource_Abstract {

	public function getChildrenIds($parentId, $required = true) {
		return Mage::getResourceSingleton('catalog/product_type_configurable')
			->getChildrenIds($parentId, $required);
	}
	
	public function getParentIds($childId) {
		return Mage::getResourceSingleton('catalog/product_type_configurable')
			->getParentIdsByChild($childId);
	}

	public function saveChildIds($product_id, $child_ids) {
		return Mage::getResourceModel('catalog/product_type_configurable')
			->saveProducts($product_id, $child_ids);
	}

	public function insertSuperLabel() {
	}

	public function updateSuperLabel() {
	}

}
